/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

/**
 *
 * @author bomik
 */
public class TestThread implements Runnable{

    public int id;

    public TestThread(int i) {
        id=i;
    }
    
    @Override
    public void run() {
        for(int i=1;i<=10;i++){
            
                long rand = (long)(Math.random()*6);
                IOutil.getInstance().writeLogLine(i+". Test vom Thread "+id);
                //IOutil.getInstance().writeLogLine("now wait "+rand+"sec.");
                IOutil.flush();
        
        }
           
    }
    
}
